var isDraging=false;
var ox,oy;

function fnDown(eventObj,e){
	e=e||window.event;
	isDraging=true;
	var workWidth = parseInt(parent.navworkFrame.cols.split(",")[0]);
	ox=e.offsetX;
	oy=e.offsetY;
	eventObj.setCapture();
}

function fnMove(eventObj,e){
	e=e||window.event;
	if(e.button!=1){
		fnRelease(eventObj);
	}
	if(isDraging){
		var th=parseInt(parent.navworkFrame.cols.split(",")[0])+e.x-ox;
		if (th<216){
			th=216;
		}
		parent.navworkFrame.cols=""+th+",7,*";
	}
}

function fnUp(eventObj){
	fnRelease(eventObj);
}
function fnRelease(eventObj){
	isDraging=false;
	eventObj.releaseCapture();
}